package org.jeecg.modules.wlhy.setting.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: hy_setting
 * @Author: jeecg-boot
 * @Date:   2021-04-23
 * @Version: V1.0
 */
@Data//lombok
@TableName("hy_setting")//表名（mybatis-plus）
@Accessors(chain = true)//lombok注解，setting返回对象
@EqualsAndHashCode(callSuper = false)//lombok注解
@ApiModel(value="hy_setting对象", description="hy_setting")//swagger注解类模块
public class HySetting implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")//swagger注解
    private String id;
    /**标签(用于查找设置，标签唯一)*/
    @Excel(name = "标签", width = 15)
    @ApiModelProperty(value = "标签")
    private String tag;
	/**设置标题*/
	@Excel(name = "设置标题", width = 15)//jeecgboot文档
    @ApiModelProperty(value = "设置标题")
    private String title;
	/**设置描述*/
	@Excel(name = "设置描述", width = 15)
    @ApiModelProperty(value = "设置描述")
    private String description;
	/**设置种类(1司机设置 2货主设置 3系统设置)*/
	@Excel(name = "设置种类(1司机设置 2货主设置 3系统设置)", width = 15, dicCode = "setting_categories")
	@Dict(dicCode = "setting_categories")
    @ApiModelProperty(value = "设置种类(1司机设置 2货主设置 3系统设置)")
    private Integer categories;
	/**设置类型(1开关 2文件地址 3其它)*/
	@Excel(name = "设置类型(1开关 2文件地址 3其它)", width = 15, dicCode = "setting_type")
	@Dict(dicCode = "setting_type")
    @ApiModelProperty(value = "设置类型(1开关 2文件地址 3其它)")
    private Integer type;
	/**设置数据*/
	@Excel(name = "设置数据", width = 15)
    @ApiModelProperty(value = "设置数据")
    private String data;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")//传出data类型
    @DateTimeFormat(pattern="yyyy-MM-dd")//传入时间字符串转换成data类型
    @ApiModelProperty(value = "创建日期")//swagger类方法上
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**删除状态(0-正常,1-已删除)*/
	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    private String delFlag;
}
